package com.cskaoyan._04oop1._04test;

/**
 * @author Macro_Ray
 * @since 2024/3/12 20:06
 */
public class Test1 {
    public static void main(String[] args) {
        Car car = new Car();
        //car.run();
        car.run(150);
    }
}
class Car{
    String color = "黑色";
    int speed = 110;

    public void run(int speed){
        System.out.println(color + "汽车呼呼跑到了" + speed + "公里/时");
        System.out.println(color + "汽车呼呼跑到了" + this.speed + "公里/时");
    }
}
